<?php
/**
 * 从供应商系统读取供应商银行账号信息同步到进销存
 * Created by PhpStorm.
 * User: locove
 * Date: 14-10-29
 * Time: 下午7:19
 */
class Controller_Acsystem extends Controller
{
    public function action_getAccounts()
    {
        $time_offset=-10;
        $start_time=date("Y-m-d H:i:s",strtotime($time_offset.' minutes'));
        $end_time=date("Y-m-d H:i:s");
        Acsystemclient::getAccounts($start_time,$end_time);
    }

    public function action_getPayways()
    {
        $time_offset=-10;
        $start_time=date("Y-m-d H:i:s",strtotime($time_offset.' minutes'));
        $end_time=date("Y-m-d H:i:s");
        Acsystemclient::getPayways($start_time,$end_time);
    }
}